// com.ruoyi.platform.controller.PlatformDashboardController.java
package com.ruoyi.platform.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.platform.domain.vo.DashboardStatsVO;
import com.ruoyi.platform.service.IPlatformDashboardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 平台数据大屏Controller
 */
@RestController
@RequestMapping("/platform/dashboard")
public class PlatformDashboardController extends BaseController {

    @Autowired
    private IPlatformDashboardService platformDashboardService;

    /**
     * 获取首页数据大屏统计信息
     */
    @GetMapping("/stats")
    public AjaxResult getDashboardStats() {
        DashboardStatsVO stats = platformDashboardService.getDashboardStats();
        return success(stats);
    }
}